package com.taotao.config;

import com.taotao.callback.CloseCallbackImpl;
import com.taotao.callback.StartCallbackImpl;
import com.taotao.service.RegisterService;
import com.taotao.service.ServiceRenewal;
import com.taotao.starter.ApplicationRunnerImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author wangjin
 * @title: SwCloudConfiguration
 * @projectName sw-springcloud
 * @description:
 * @date 2021/10/28 22:23
 */
@Configuration
public class SwCloudConfiguration {

    @Bean
    public SwCloudConfig swCloudConfig() {
        return new SwCloudConfig();
    }

    @Bean
    public ServerConfig serverConfig() {
        return new ServerConfig();
    }

    @Bean
    public RegisterService registerService() {
        return new RegisterService();
    }

    @Bean
    public StartCallbackImpl startCallback() {
        return new StartCallbackImpl();
    }

    @Bean
    public CloseCallbackImpl callback() {
        return new CloseCallbackImpl();
    }

    @Bean
    public ServiceRenewal ServiceRenewal() {
        return new ServiceRenewal();
    }
}
